﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>TesteFlex</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	
	<script src="js/swfobject.js" type="text/javascript"></script>
	<script type="text/javascript">
		var flashvars = {
		};
		var params = {
			menu: "false",
			scale: "noScale",
			allowFullscreen: "true",
			allowScriptAccess: "always",
			bgcolor: "#FFFFFF"
		};
		var attributes = {
			id:"TesteFlex"
		};
		
		var thumbnailURLs = new Array();
		thumbnailURLs[0] = "http://img2.orkut.com/images/milieu/1/525/6322525/Z14cbaq.jpg?sig=gi1au";
		thumbnailURLs[1] = "http://img4.orkut.com/images/milieu/2/525/6322525/Zxjp9gt.jpg?sig=9uin79";
		thumbnailURLs[2] = "http://img1.orkut.com/images/milieu/8/525/6322525/Zyx3d2t.jpg?sig=1h39yuh";
		thumbnailURLs[3] = "http://img3.orkut.com/images/milieu/10/525/6322525/Z140g3j9.jpg?sig=f33kd";
		
		var quantidadeURLS = 4;

		swfobject.embedSWF("http://mosaicokuik.appspot.com/os/TesteFlex.swf", "altContent", "100%", "100%", "9.0.0", "http://mosaicokuik.appspot.com/os/expressInstall.swf", flashvars, params, attributes);
		
		function getQuantidadeTotal() {
		
			return quantidadeURLS;
		}
		
		function getURLs( quantidadePorPagina, pagina ) {
			
			if ( thumbnailURLs == null ) {
			 
				return null;
			}
			
			var urlsToReturn = "";
			var primeiro = true;
			var i2 = 0;
			for( var i = (pagina * quantidadePorPagina) - quantidadePorPagina; i < quantidadeURLS && i2 < quantidadePorPagina; ) {
				
				if (!primeiro){
					urlsToReturn = urlsToReturn + '///' + thumbnailURLs[i];
				}
				else {
					urlsToReturn = thumbnailURLs[i];
					primeiro = false;
				}
				i++;
				i2++;
			}
			
			return urlsToReturn;
		}

	</script>
	<style>
		html, body { height:100%; }
		body { margin:0; }
	</style>
</head>
<body>
	<div id="altContent">
		<h1>TesteFlex</h1>
		<p>Alternative content</p>
		<p><a href="http://www.adobe.com/go/getflashplayer"><img 
			src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" 
			alt="Get Adobe Flash player" /></a></p>
	</div>
</body>
</html>